let ymApiUrl, ssoApi, appApi
const isPr = process.env.NODE_ENV === 'production'
debugger
if (!isPr) {
  ymApiUrl = '/ymApi'
  ssoApi = '/ssoApi'
  appApi = '/appApi'
} else {
  ymApiUrl = '/api'
  ssoApi = 'http://sso.eqgis.com/api'
  appApi = 'http://152.136.144.192:2000/jeecg-boot/sys'
}

const api = {
  // 用户相关
  getConfig: {
    name: '获取egis配置',
    url: ymApiUrl + '/system/egis/config/'
  },
  getSsoToken1: {
    url: ssoApi + '/user/sso_token/'
  },
  getSsoToken2: {
    url: ymApiUrl + '/user/sso_token/'
  },
  refreshToken: {
    url: ymApiUrl + '/user/refresh_token/'
  },
  getUserLngLat: {
    name: '获取app位置信息',
    url: appApi + '/sys/get_user_lng_lat'
  },
  getUserInfo: {
    name: '获取用户信息',
    url: ymApiUrl + '/user/info/'
  },
  earthquakeList: {
    name: '地震列表',
    url: ymApiUrl + '/earthquake/earthquakes/'
  },
  earthquakeImportant: {
    name: '重大地震列表',
    url: ymApiUrl + '/earthquake/important/'
  },
  earthquakeProvince: {
    name: '地震按省份统计',
    url: ymApiUrl + '/earthquake/provincestatistics/'
  },
  earthquakeRead: {
    name: '获取地震信息',
    url: ymApiUrl + '/earthquake/earthquakes/'
  },
  earthquakeEmulation: {
    name: '地震推演',
    url: ymApiUrl + '/visual/earthquake/emulation/'
  },
  getGeocoder: {
    name: '根据经纬度获取地址',
    url: ymApiUrl + '/earthquake/geocoder/'
  },
  layerList: {
    name: '图层列表',
    url: ymApiUrl + '/visual/layer/data/'
  },
  layerList2: {
    name: '图层列表',
    url: ymApiUrl + '/visual/map/layer/data/'
  },
  weather: {
    name: '获取天气信息',
    url: ymApiUrl + '/weather/'
  },
  evaluate: {
    name: '评价',
    url: ymApiUrl + '/evaluate/result/'
  },
  intensityLine: {
    name: '影响场',
    url: ymApiUrl + '/intensity/intensities/'
  },
  heatData: {
    name: '热力图',
    url: ymApiUrl + '/visual/heat/data/'
  },
  intensityarea: {
    name: '地震影响范围',
    url: ymApiUrl + '/earthquake/intensityarea/'
  },
  earthquakeByproperty: {
    name: '根据属性查询地震',
    url: ymApiUrl + '/earthquake/property/'
  },
  earthquakeAssessment: {
    name: '评估结果',
    url: ymApiUrl + '/evaluate/result/'
  },
  qtheme: {
    name: '专题图',
    url: ymApiUrl + '/theme/themes/'
  },
  report: {
    name: '报告',
    url: ymApiUrl + '/report/reports/'
  },
  fileTypes: {
    name: '文件类型',
    url: ymApiUrl + '/file/types/'
  },
  fileList: {
    name: '文件列表',
    url: ymApiUrl + '/file/files/'
  },
  getAffectedCounty: {
    name: '获取受影响区县',
    url: ymApiUrl + '/earthquake/affected_county/'
  },
  getEconomy: {
    name: '按烈度区统计经济影响',
    url: ymApiUrl + '/earthquake/statistics/economy/'
  },
  getPopulation: {
    name: '按烈度区统计人口影响',
    url: ymApiUrl + '/earthquake/statistics/population/'
  },
  getHazard_affected: {
    name: '按烈度区统计承灾体数量',
    url: ymApiUrl + '/earthquake/statistics/hazard_affected/'
  },
  getResponse_level: {
    name: '获取地震响应级别',
    url: ymApiUrl + '/earthquake/statistics/response_level/'
  },
  history_earthquake_calculate: {
    name: '历史地震震级频次统计',
    url: ymApiUrl + '/earthquake/history_earthquake_calculate/'
  },
  history_max_disaster_detail: {
    name: '最大历史灾害地震描述',
    url: ymApiUrl + '/earthquake/history_max_disaster_detail/'
  },
  getdistrict: {
    name: '获取行政区划',
    url: ymApiUrl + '/data/district/region/'
  }
}
export default api
